const app = require('express')()
const path = require('path')

app.use((req, res, next) => {
    res.header('Access-Control-Allow-Origin', '*')
    next()
})

app.get('/', (req, res, next) => {
    res.sendFile(path.resolve(__dirname, './data.json'))
})

app.listen('8888', () => {
    console.log('listening at port 8888')
})
